package io.renren.config;


import io.renren.modules.mapp.config.ConfigurationManager;
import io.renren.modules.mapp.exception.ConfigurationException;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Administrator on 2017/7/31 0031.
 */
@Configuration
public class WaferConfig {
    @Bean
    public io.renren.modules.mapp.config.Configuration waferConfigure() throws ConfigurationException {
        io.renren.modules.mapp.config.Configuration configuration = new io.renren.modules.mapp.config.Configuration();
        // 业务服务器访问域名
        configuration.setServerHost("127.0.0.1");
        // 会话管理服务器地址
        configuration.setAuthServerUrl("http://115.159.213.97/mina_auth/");
        // 信道服务地址
        configuration.setTunnelServerUrl("https://ws.qcloud.com/");
        // 信道服务签名 key
        configuration.setTunnelSignatureKey("my$ecretkey");
        // 网络请求超时设置，单位为秒
        configuration.setNetworkTimeout(30);
        ConfigurationManager.setup(configuration);
        return configuration;
    }
}
